


const devApiUrl = 'http://localhost:8080/'
const proApiUrl = location.protocol+'//'+location.hostname+(':8080/')

const devWsUrl = 'ws://localhost:8080/ws/server'
const proWsUrl = 'ws://'+location.hostname+(':8080/ws/server');

const devBaseUrl = 'http://localhost:3000/'
const proBaseUrl = location.protocol+'//'+location.hostname+(location.port?':'+location.port+'/':'/')

const IS_DEV = false//process.env.NODE_ENV === "development"

export const kf_key = 'kf-certificate'

export default {
    IS_DEV,
    // 接口存储地址 
    apiUrl:IS_DEV?devApiUrl:proApiUrl,
    // websocket地址
    wsUrl:IS_DEV?devWsUrl:proWsUrl,
    // 
    baseUrl:IS_DEV?devBaseUrl:proBaseUrl,
    kf_key
}
 
